module AnnorationsHelper
    def star(star_number, rating = 0, attributes ={})
      rating = rating || 0
      "<img id=\"star_#{star_number}\" src=\"/images/star_" + (star_number > rating ? "empty" : "filled") + "_big.gif\" onmouseover=\"overStar(#{star_number})\" onclick=\"clickStar(#{star_number})\" onmouseout=\"leaveStar()\" />"
    end
    
    def redirect_input_tag
      redirect = params[:redirect]
      "<input type=\"hidden\" name=\"redirect\" value=\"#{h redirect}\" \>" if redirect
    end
end
